home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 1: Comms & Networking / Almathera Ten on Ten - Disc 1: Comms & Networking.iso / tools / archie / archie-1.4 / vms / time.h < prev    next >
C/C++ Source or Header  |  1995-05-01  |  459b  |  32 lines

  1. #ifndef __PKTIME
  2. #define __PKTIME
  3.  
  4. struct timeval
  5. {
  6.   long tv_sec;
  7.   long tv_usec;
  8. };
  9.  
  10. struct timezone
  11. {
  12.   int tz_minuteswest;
  13.   int tz_dsttime;
  14. };
  15.  
  16. struct itimerval
  17. {
  18.   struct timeval it_interval;
  19.   struct timeval it_value;
  20. };
  21.  
  22. #define ITIMER_REAL 0
  23. #define timerclear(x) (x)->tv_sec = (x)->tv_usec = 0
  24.  
  25. #ifndef __GNUC__
  26. # include <sys$library:time.h>
  27. #else /* not Gnu C */
  28. # include <gnu_cc_include:[000000]time.h>
  29. #endif /* Gnu C */
  30.  
  31. #endif /* __PKTIME */
  32.